import request from '@/utils/request'

// 查询考试记录考题列表
export function listPaperQu(query) {
  return request({
    url: '/business/paperQu/list',
    method: 'get',
    params: query
  })
}

// 查询考试记录考题所有列表
export function listAllPaperQu(query) {
  return request({
    url: '/business/paperQu/listAll',
    method: 'get',
    params: query
  })
}

// 查询考试记录考题详细
export function getPaperQu(id) {
  return request({
    url: '/business/paperQu/getInfo/' + id,
    method: 'get'
  })
}

// 新增考试记录考题
export function addPaperQu(data) {
  return request({
    url: '/business/paperQu/add',
    method: 'post',
    data: data
  })
}

// 修改考试记录考题
export function updatePaperQu(data) {
  return request({
    url: '/business/paperQu/edit',
    method: 'post',
    data: data
  })
}

// 删除考试记录考题
export function delPaperQu(id) {
  return request({
    url: '/business/paperQu/remove/' + id,
    method: 'get'
  })
}
